package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name = "t_yenlien_news")
public class YenlienNews extends BaseEntity {

    @ApiModelProperty(value = "序号", example = "1")
    private Integer sort;

    @ApiModelProperty(value = "文章名称", example = "")
    private String name;

    @ApiModelProperty(value = "文章类型", example = "")
    private String type;

    @ApiModelProperty(value = "文章内容(富文本)", example = "")
    @Column(columnDefinition = "longtext")
    private String content;

    @ApiModelProperty(value = "点击量", example = "")
    private Integer clickNum;

    @ApiModelProperty(value = "发布人", example = "")
    private String publisher;

    @ApiModelProperty(value = "文章封面", example = "")
    @Column(columnDefinition = "longtext")
    private String coverImg;

    @ApiModelProperty(value = "是否首页展示", example = "false")
    private Boolean homeShow;

    @ApiModelProperty(value = "状态 1=已发布 2=待发布", example = "1")
    private String state;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "发布时间")
    private String publishTime;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getClickNum() {
        return clickNum;
    }

    public void setClickNum(Integer clickNum) {
        this.clickNum = clickNum;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public Boolean getHomeShow() {
        return homeShow;
    }

    public void setHomeShow(Boolean homeShow) {
        this.homeShow = homeShow;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
